﻿libModule.factory("arrUtil", [function () {    
    function cloneColumnInList(list, columnName, cloneColumnName) {
        "use strict";
        var i;
        for (i = 0; i < list.length; i++) {
            list[i][cloneColumnName] = list[i][columnName];
        }
    }

    function deletePropInList(list, property) {
        "use strict";
        var i;
        for (i = 0; i < list.length; i++) {
            delete list[i][property];
        }
    }

    return {
        cloneColumnInList: cloneColumnInList,
        deletePropInList: deletePropInList
    }
}]);